﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Butterfly.User.Library.Components.ib_User
{
    public class ib_UserLoginController
    {
        public static int CheckPassword(string username, string pass)
        {
            ib_UserInfo currentUser = ib_UserController.GetInfoByUsername(username);
            return currentUser.Password.Equals(pass) ? currentUser.UserId : 0;
        }
    }
}
